package org.example.domain.repository;

import org.example.domain.model.entity.url.UrlShortenerGroup;
import org.example.domain.model.entity.url.req.UrlShortenerGroupSortReq;

import java.util.List;

public interface UrlGroupDomainRepository {

    Integer selectCountByUserName(String userName);

    void insertGroup(UrlShortenerGroup urlShortenerGroup);

    List<UrlShortenerGroup> listGroupByUserName(String userName);

    void updateGroup(String gid, String userName, String groupName);

    void deleteGroup(String gid, String userName);

    void sortGroup(List<UrlShortenerGroupSortReq> reqList, String userName);

    List<String> selectGitListByUserName(String userName);
}
